package relu.R.landscape;
import java.util.*;

public class ClosePacker {
	public static void relaxFarmPositions(List<FarmArea> farms){
		int maxits=1000;
		int iterations=0;
		while( iterations < maxits){
			iterations++;
			for(FarmArea farm:farms){
				farm.calculateForces(farms);
			}
			for(FarmArea farm:farms){
				farm.move();
			}
		}
	}
	
}
